//
//  HomeProductCell.swift
//  baihuiju
//
//  Created by 赵家彬 on 2018/5/24.
//  Copyright © 2018年 赵家彬. All rights reserved.
//

import UIKit

class HomeProductCell: UICollectionViewCell {
    
    
    @IBOutlet weak var ivProduct: UIImageView!
    @IBOutlet weak var lblProductDesc: UILabel!
    @IBOutlet weak var lblProductTitle: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
    }
    
    var model:HomeProductModel = HomeProductModel() {
        didSet {
            ivProduct.kf.setImage(with: URL(string: ActionURL.HOST + model.img), placeholder: UIImage(named: "bg_place_holder"), completionHandler: nil)
            lblProductDesc.text = model.des
            lblProductTitle.text = model.title
        }
    }

}
